<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<title>文件传阅详情-云校通</title>
<script type="text/javascript">
	window.param = {
		title: "一条文件传阅通知请查收",
		desc: "一条文件传阅通知请查收",
		imgUrl: "<%=basePath%>/images/banner/banner2.jpg",
		link: "<%=basePath%>/ls/share/fileAround?fid=${notice.id}"
	}
</script>
<jsp:include page="/WEB-INF/page/common/_header.jsp"></jsp:include>
<body ontouchstart id="xs_c" style="background: #fff;">
	<div class="weui_tab tab-bottom">
		<div class="weui-header bg-blue"> 
	  		<div class="weui-header-left"><a onclick="back()" href="javascript:;" class="icon icon-109 f-white">返回</a></div>
	    	<h1 class="weui-header-title">文件传阅详情</h1>
		</div>
		<div class="weui_tab_bd mb55">
			<div class="weui-weixin">
				<div class="weui-weixin-ui">
				   <div class="weui-weixin-page border-bottom1">
					   <div class="weui-weixin-info pt10 mb0">
	                     <span class="weui-weixin-em">发布人：</span>
	                      <em class="weui-weixin-em" >${notice.sender } 老师</em>
	                    </div>
				   </div>
			   	   <div class="weui-weixin-page border-bottom1">
					   <div class="weui-weixin-info pt10 mb0">
	                     <span class="weui-weixin-em">发布时间：</span>
	                      <em class="weui-weixin-em" ><fmt:formatDate value="${notice.createTime}" type="time" timeStyle="short"/></em>
	                    </div>
					</div>
					<c:if test="${notice.guideContent != null && !empty notice.guideContent}">
						<div class="weui-weixin-page">
						   <div class="weui-weixin-info pt10 mb0">
		                     <span class="weui-weixin-em f-green">校长批示：</span>
		                      <em class="weui-weixin-em f-red" >
		                      	${notice.guideContent }
		                      </em>
		                    </div>
						</div>
					</c:if>
			    </div>
			</div>
			<div class="weui_cells xs_c_content mt0">
			    <div class="weui-weixin-content">
                    <p id="noticeContent">${notice.content }</p>
                </div>
			</div>
			<div class="weui_cells xs_c_piclist">
                <div class="xs_c_picWrap clearfix img-click">
                	<c:forEach var="item" items="${notice.attachList }">
                		<c:if test="${item.attachmentType == 'image' }">
                			<div class="xs_c_pic"><img onclick="imgClick(this)" src="${config.imgUrl }${item.attachmentUrl}"></div>
                		</c:if>
                	</c:forEach>
                </div>
			</div>
				
			<div class="weui_cells xs_c_piclist p5">
                <div class="xs_c_picWrap clearfix">
					<c:forEach var="item" items="${notice.attachList }">
						<c:if test="${item.attachmentType != 'image' }">
							<div class="xtbg-upload-list mb10">
								<div class="xtbg-upload-list-inner">
									<p>${item.attachmentName}</p>
									<a href="${config.imgUrl}${item.attachmentUrl}" class="weui_btn weui_btn_mini weui_btn_primary f-white bg-blue">查看</a>
								</div> 
							</div>
						</c:if>
					</c:forEach>
				</div>
			</div>
			<div class="weui_cells mt0 mb45"></div>
		</div>
	</div>
	<jsp:include page="/WEB-INF/page/common/_footer.jsp"></jsp:include>
</body>
</html>